home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -screenplay- / hd_installers / whdigames / whdigamesa-b / backtothefuture3.lha / BacktotheFuture3HD / Install-Game < prev    next >
Text File  |  1999-04-29  |  2KB  |  119 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("df%ld:" #CI_unit))
  3. (set #readme "bttf3")            ; %shd.readme
  4. ;----------------------------
  5.  
  6. ;try to figure out a place where the user usually installs his games
  7. (if (exists "Games:" (noreq) )
  8.     (set @default-dest "Games:")
  9.     (if (exists "SYS:Games" (noreq) )
  10.         (set @default-dest "SYS:Games")
  11.         (if (exists "Work:Games" (noreq) )
  12.             (set @default-dest "Work:Games")
  13.             (if (exists "JEUX:" (noreq) )
  14.                (set @default-dest "JEUX:")
  15.                (set @default-dest "SYS:")
  16.             )
  17.         )
  18.     )
  19. )
  20.  
  21. (message "\n\n\nThis loader requires either JST or WHDLoad (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST and WHDLoad are available from aminet (game/patch)")
  22.  
  23. (set @default-dest
  24. (askdir
  25.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  26.     (help @askdir-help)
  27.     (default @default-dest)
  28.     (disk)
  29. )
  30. )
  31. (set #dest (tackon @default-dest @app-name))
  32. (set #CI_unit
  33.     (askchoice
  34.         (prompt "From which disk unit do you want\nto install the game")
  35.         (help    @askoptions-help)
  36.         (choices
  37.            "DF0:"
  38.            "DF1:"
  39.            "DF2:"
  40.            "DF3:"
  41.         )
  42.     )
  43. )
  44.  
  45. (set #CI_drive ("DF%ld:" #CI_unit))
  46.  
  47. (set #Game_Ver
  48.     (askchoice
  49.         (prompt "Which version of the loader do you wish to install")
  50.         (help    @askoptions-help)
  51.         (choices
  52.            "JST"
  53.            "WHDLoad"
  54.         )
  55.     )
  56. )
  57.  
  58. (makedir #dest
  59.     (help @makedir-help)
  60.     (infos)
  61. )
  62.  
  63. ;----------------------------
  64. (if (= #Game_Ver 0)
  65. (copyfiles
  66.   (help @copyfiles-help)
  67.   (source ("JHD.inf"))
  68.   (newname ("%sHD.info" @app-name ))
  69.   (dest #dest)
  70. ))
  71. (if (= #Game_Ver 0)
  72. (copyfiles
  73.   (help @copyfiles-help)
  74.   (source ("HD"))
  75.   (newname ("%sHD" @app-name ))
  76.   (dest #dest)
  77. ))
  78. (if (= #Game_Ver 1)
  79. (copyfiles
  80.   (help @copyfiles-help)
  81.   (source ("WHD.inf"))
  82.   (newname ("%sHD.info" @app-name ))
  83.   (dest #dest)
  84. ))
  85. (if (= #Game_Ver 1)
  86. (copyfiles
  87.   (help @copyfiles-help)
  88.   (source ("HD.slave" ))
  89.   (newname ("%sHD.slave" @app-name ))
  90.   (dest #dest)
  91. ))
  92. (copyfiles
  93.   (help @copyfiles-help)
  94.   (source ("%shd.readme" #readme))
  95.   (dest #dest)
  96. )
  97. (copyfiles
  98.   (help @copyfiles-help)
  99.   (source ("%shd.readme.info" #readme))
  100.   (dest #dest)
  101. )
  102.  
  103. (copyfiles
  104.   (help @copyfiles-help)
  105.   (source ("%s.islave" @app-name))
  106.   (dest #dest)
  107. )
  108.  
  109.  
  110. (message ("\nReady to create image files from %s" #CI_drive))
  111.  
  112.     (if
  113. (run ("CD \"%s\"\nRawDIC SLAVE=%s.islave SOURCE=%s\nDelete %s.islave" #dest @app-name #CI_drive @app-name))
  114. )
  115.  
  116.  
  117. (exit)
  118.  
  119.